
const bastUrl = 'https://www.520gongfu.com/api/'
export const feach = (path, data = null, method = 'GET') => {
    // if(!data){
    //     data=null
    // }
    // if(!method){
    //     method='GET'
    // }


    return new Promise((resolve, reject) => {
        wx.request({
            url: bastUrl + path,
            data,
            method,
            header:{
                Authorization:getApp().token
            },
            success: resolve,
            fail: reject,
        })
})
}